import request from '@/utils/request'
//获取经纪列表
export function getAgentList(params) {
    return request({
        // /agents?_limit=2&_start=0&name_contains=老王
      url: '/agents',
      method: 'get',
      params
    })
  }
  //获取地产分类
  export function getCategories(params) {
    return request({
      // /properties?_limit=2&_start=0&title_contains=东圃&agent=38&category=5
      url: '/categories',
      method: 'get',
      params
    })
  }
  //获取相关地产列表
  export function getProperties(params) {
    return request({
      // /properties?_limit=2&_start=0&title_contains=东圃&agent=38&category=5
      url: `/properties`,
      method: 'get',
      params
    })
  }
  //获取相关地产列表
  export function getPropertiesById(params) {
    return request({
      // /properties?_limit=2&_start=0&title_contains=东圃&agent=38&category=5
      url: `/properties/${params.id}`,
      method: 'get',
      params
    })
  }